﻿@model E5_KhuyenMaiVang.Models.CompanyView
@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Ajax.BeginForm("Register", "Company", new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        HttpMethod = "POST",
        UpdateTargetId = "register"
    }))
{
<div class="left-content-box">
    <div class="title-content">Đăng ký tài khoản</div>
    <div class="h1-bg"></div>
    <div class="validation">@Html.ValidationSummary(true)</div>

    
    <div id="register">
     <div class="register"> <h2> Thông tin doanh nghiệp </h2>
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.CompanyName)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.CompanyName) @Html.ValidationMessageFor(model=>model.CompanyName)</div>
       </div>  
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Address)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Address) @Html.ValidationMessageFor(model=>model.Address)</div>
       </div>  
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Phone)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Phone) @Html.ValidationMessageFor(model=>model.Phone)</div>
       </div>       
         <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Website)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Website) @Html.ValidationMessageFor(model=>model.Website)</div>
       </div>       
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Email)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Email) @Html.ValidationMessageFor(model=>model.Email)</div>
       </div>
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Taxcode)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Taxcode) @Html.ValidationMessageFor(model=>model.Taxcode)</div>
       </div>        
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Decription)</div>
            <div class="input-row"> @Html.TextAreaFor(model=>model.Decription) @Html.ValidationMessageFor(model=>model.Decription)</div>  
        <!-- Hết thông tin doanh nghiep-->
        </div>
     </div>
     <div class="register">
        <h2> Thông tin tài khoản </h2>
        <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Username)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Username) @Html.ValidationMessageFor(model=>model.Username)</div>  
        </div>
        <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Password)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Password) @Html.ValidationMessageFor(model=>model.Password)</div>  
        </div>
        <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.ConfirmPassword)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.ConfirmPassword) @Html.ValidationMessageFor(model=>model.ConfirmPassword)</div>  
        </div>    
         <div class="row">
                    <div class="midle">
                        <input class="submit-form" name="submit" value=" Đăng Ký " type="submit" /></div>
                    <div class="midle">
                        <input class="submit-form" name="reset" value=" Xóa Bỏ " type="reset" /></div>
        </div>
    </div>
    </div>
</div>
}
  <table width="100%">
</table>